import pandas as pd
data = {
    'name':['zs','ls','ww','zl','qq'],
    'math':[85,92,78,88,95],
    'english':[90,88,85,92,80],
    'physic':[75,80,88,85,90]
}
scores = pd.DataFrame(data,columns=['name','math','english','physic'])
scores['total'] = scores[['math','english','physic']].sum(axis=1)
scores['mean'] = scores[['math','english','physic']].mean(axis=1)
print(scores[:][(scores[:]['math']>90) | (scores[:]['english']>85)])
print(scores.sort_values('total',ascending=False).head(3))












